<template>
	<HButton plain size="small" :block="false" @click="onPhoto">
		上传附件
	</HButton>
</template>

<script>
	import HButton from './index.vue'
	export default {

		components: {
			HButton
		},
		methods: { 
			async onPhoto() {
				let file = await this.$uploadfile()
				this.$emit('upload', {
					icon: 'file-text',
					file: file,
					timestamp: Date.now()
				}) 

			}
		}
	}
</script>

<style>
</style>
